﻿

import request from '/@/utils/request';
import other from '/@/utils/other';

function intgrsyncremoteApi() {
	return {
		search: (data: object) => {
			return request({
				url: '/api/ReportManagement/_Default/SearchIntgrSyncRemote',
				method: 'post',
				data,
			});
		},
		get: (data: number|string) => {
			return request({
				url: '/api/IntegrationManagement/IntgrSyncRemote/'+data,
				method: 'get'
			});
		},
		add:(data: object)=>{
			return request({
				url:'/api/IntegrationManagement/IntgrSyncRemote/create',
				method:'post',
				data
			});
		},
		edit:(data: object)=>{
			return request({
				url:'/api/IntegrationManagement/IntgrSyncRemote/edit',
				method:'put',
				data
			});
		},
     	batchedit:(data: object)=>{
			return request({
				url:'/api/IntegrationManagement/IntgrSyncRemote/batchedit',
				method:'post',
				data
			});
		},    
		delete:(data: Array<number>|Array<string>)=>{
			return request({
				url:'/api/IntegrationManagement/IntgrSyncRemote/BatchDelete',
				method:'post',
				data
			});
		},
		export: (data: object) => {
			return request<any,Blob>({
				responseType: "blob",
				url: '/api/ReportManagement/_Default/IntgrSyncRemoteExportExcel',
				method: 'post',
				data,
			}).then((data)=>{other.downloadFile(data)});;
		},
		exportById: (data: Array<number>|Array<string>) => {
			return request<any,Blob>({
				responseType: "blob",
				url: '/api/ReportManagement/_Default/IntgrSyncRemoteExportExcelByIds',
				method: 'post',
				data,
			}).then((data)=>{other.downloadFile(data)});
		},
		import: (data: object) => {
			return request({
				url: '/api/IntegrationManagement/IntgrSyncRemote/Import',
				method: 'post',
				data,
			});
		},
        approve: (data: object,tag:string) => {
			return request({
				url: '/api/IntegrationManagement/IntgrSyncRemote/approve?tag='+tag,
				method: 'post',
				data
			});
		},
	};
}

function intgrsyncremote1Api() {
	return {
		search: (data: object) => {
			return request({
				url: '/api/ReportManagement/_Default/SearchIntgrSyncRemote1',
				method: 'post',
				data,
			});
		},
		get: (data: number|string) => {
			return request({
				url: '/api/IntegrationManagement/IntgrSyncRemote/'+data,
				method: 'get'
			});
		},
		add:(data: object)=>{
			return request({
				url:'/api/IntegrationManagement/IntgrSyncRemote/create',
				method:'post',
				data
			});
		},
		edit:(data: object)=>{
			return request({
				url:'/api/IntegrationManagement/IntgrSyncRemote/edit',
				method:'put',
				data
			});
		},
     	batchedit:(data: object)=>{
			return request({
				url:'/api/IntegrationManagement/IntgrSyncRemote/batchedit',
				method:'post',
				data
			});
		},    
		delete:(data: Array<number>|Array<string>)=>{
			return request({
				url:'/api/IntegrationManagement/IntgrSyncRemote/BatchDelete',
				method:'post',
				data
			});
		},
		export: (data: object) => {
			return request<any,Blob>({
				responseType: "blob",
				url: '/api/ReportManagement/_Default/IntgrSyncRemote1ExportExcel',
				method: 'post',
				data,
			}).then((data)=>{other.downloadFile(data)});;
		},
		exportById: (data: Array<number>|Array<string>) => {
			return request<any,Blob>({
				responseType: "blob",
				url: '/api/ReportManagement/_Default/IntgrSyncRemote1ExportExcelByIds',
				method: 'post',
				data,
			}).then((data)=>{other.downloadFile(data)});
		},
		import: (data: object) => {
			return request({
				url: '/api/IntegrationManagement/IntgrSyncRemote/Import',
				method: 'post',
				data,
			});
		},
        approve: (data: object,tag:string) => {
			return request({
				url: '/api/IntegrationManagement/IntgrSyncRemote/approve?tag='+tag,
				method: 'post',
				data
			});
		},
	};
}

function intgrsyncremote2Api() {
	return {
		search: (data: object) => {
			return request({
				url: '/api/ReportManagement/_Default/SearchIntgrSyncRemote2',
				method: 'post',
				data,
			});
		},
		get: (data: number|string) => {
			return request({
				url: '/api/IntegrationManagement/IntgrSyncRemote/'+data,
				method: 'get'
			});
		},
		add:(data: object)=>{
			return request({
				url:'/api/IntegrationManagement/IntgrSyncRemote/create',
				method:'post',
				data
			});
		},
		edit:(data: object)=>{
			return request({
				url:'/api/IntegrationManagement/IntgrSyncRemote/edit',
				method:'put',
				data
			});
		},
     	batchedit:(data: object)=>{
			return request({
				url:'/api/IntegrationManagement/IntgrSyncRemote/batchedit',
				method:'post',
				data
			});
		},    
		delete:(data: Array<number>|Array<string>)=>{
			return request({
				url:'/api/IntegrationManagement/IntgrSyncRemote/BatchDelete',
				method:'post',
				data
			});
		},
		export: (data: object) => {
			return request<any,Blob>({
				responseType: "blob",
				url: '/api/ReportManagement/_Default/IntgrSyncRemote2ExportExcel',
				method: 'post',
				data,
			}).then((data)=>{other.downloadFile(data)});;
		},
		exportById: (data: Array<number>|Array<string>) => {
			return request<any,Blob>({
				responseType: "blob",
				url: '/api/ReportManagement/_Default/IntgrSyncRemote2ExportExcelByIds',
				method: 'post',
				data,
			}).then((data)=>{other.downloadFile(data)});
		},
		import: (data: object) => {
			return request({
				url: '/api/IntegrationManagement/IntgrSyncRemote/Import',
				method: 'post',
				data,
			});
		},
        approve: (data: object,tag:string) => {
			return request({
				url: '/api/IntegrationManagement/IntgrSyncRemote/approve?tag='+tag,
				method: 'post',
				data
			});
		},
	};
}

function intgrsyncremote3Api() {
	return {
		search: (data: object) => {
			return request({
				url: '/api/ReportManagement/_Default/SearchIntgrSyncRemote3',
				method: 'post',
				data,
			});
		},
		get: (data: number|string) => {
			return request({
				url: '/api/IntegrationManagement/IntgrSyncRemote/'+data,
				method: 'get'
			});
		},
		add:(data: object)=>{
			return request({
				url:'/api/IntegrationManagement/IntgrSyncRemote/create',
				method:'post',
				data
			});
		},
		edit:(data: object)=>{
			return request({
				url:'/api/IntegrationManagement/IntgrSyncRemote/edit',
				method:'put',
				data
			});
		},
     	batchedit:(data: object)=>{
			return request({
				url:'/api/IntegrationManagement/IntgrSyncRemote/batchedit',
				method:'post',
				data
			});
		},    
		delete:(data: Array<number>|Array<string>)=>{
			return request({
				url:'/api/IntegrationManagement/IntgrSyncRemote/BatchDelete',
				method:'post',
				data
			});
		},
		export: (data: object) => {
			return request<any,Blob>({
				responseType: "blob",
				url: '/api/ReportManagement/_Default/IntgrSyncRemote3ExportExcel',
				method: 'post',
				data,
			}).then((data)=>{other.downloadFile(data)});;
		},
		exportById: (data: Array<number>|Array<string>) => {
			return request<any,Blob>({
				responseType: "blob",
				url: '/api/ReportManagement/_Default/IntgrSyncRemote3ExportExcelByIds',
				method: 'post',
				data,
			}).then((data)=>{other.downloadFile(data)});
		},
		import: (data: object) => {
			return request({
				url: '/api/IntegrationManagement/IntgrSyncRemote/Import',
				method: 'post',
				data,
			});
		},
        approve: (data: object,tag:string) => {
			return request({
				url: '/api/IntegrationManagement/IntgrSyncRemote/approve?tag='+tag,
				method: 'post',
				data
			});
		},
	};
}

function intgrsyncremote4Api() {
	return {
		search: (data: object) => {
			return request({
				url: '/api/ReportManagement/_Default/SearchIntgrSyncRemote4',
				method: 'post',
				data,
			});
		},
		get: (data: number|string) => {
			return request({
				url: '/api/IntegrationManagement/IntgrSyncRemote/'+data,
				method: 'get'
			});
		},
		add:(data: object)=>{
			return request({
				url:'/api/IntegrationManagement/IntgrSyncRemote/create',
				method:'post',
				data
			});
		},
		edit:(data: object)=>{
			return request({
				url:'/api/IntegrationManagement/IntgrSyncRemote/edit',
				method:'put',
				data
			});
		},
     	batchedit:(data: object)=>{
			return request({
				url:'/api/IntegrationManagement/IntgrSyncRemote/batchedit',
				method:'post',
				data
			});
		},    
		delete:(data: Array<number>|Array<string>)=>{
			return request({
				url:'/api/IntegrationManagement/IntgrSyncRemote/BatchDelete',
				method:'post',
				data
			});
		},
		export: (data: object) => {
			return request<any,Blob>({
				responseType: "blob",
				url: '/api/ReportManagement/_Default/IntgrSyncRemote4ExportExcel',
				method: 'post',
				data,
			}).then((data)=>{other.downloadFile(data)});;
		},
		exportById: (data: Array<number>|Array<string>) => {
			return request<any,Blob>({
				responseType: "blob",
				url: '/api/ReportManagement/_Default/IntgrSyncRemote4ExportExcelByIds',
				method: 'post',
				data,
			}).then((data)=>{other.downloadFile(data)});
		},
		import: (data: object) => {
			return request({
				url: '/api/IntegrationManagement/IntgrSyncRemote/Import',
				method: 'post',
				data,
			});
		},
        approve: (data: object,tag:string) => {
			return request({
				url: '/api/IntegrationManagement/IntgrSyncRemote/approve?tag='+tag,
				method: 'post',
				data
			});
		},
	};
}

export {intgrsyncremoteApi,intgrsyncremote1Api,intgrsyncremote2Api,intgrsyncremote3Api,intgrsyncremote4Api}
